[XEND] Add missing line from changeset 11653:3b7e11cbeb940
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 10 Oct 2006 15:02:30 +0000 (16:02 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 10 Oct 2006 15:02:30 +0000 (16:02 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/python/xen/util/blkif.py

index c9a9dc9e6abc93fd4e9473fc5e7739c6bebf2677..8c982b7beb5dba9878bf5144c1cb8461795f8020 100644 (file)
@@ -64,7 +64,7 @@ def blkdev_uname_to_file(uname):
     """Take a blkdev uname and return the corresponding filename."""
     fn = None
     if uname.find(":") != -1:
-        (typ, fn) = uname.split(":")
+        (typ, fn) = uname.split(":", 1)
         if typ == "phy" and not fn.startswith("/"):
             fn = "/dev/%s" %(fn,)
         if typ == "tap":